#include "head.h"

// rm
int rm(me_t* me, int sock_fd, char* cmd)
{
    messenger_t msg;
    bzero(&msg, sizeof(msg));

    msg.cmd = RM;
    while(*cmd++ != ' ');
    sprintf(msg.args, "%s&%s/%s", me->name, me->path, cmd);
    
    send(sock_fd, &msg, sizeof(msg), MSG_NOSIGNAL);
    printf("args: %s\n", msg.args);
    
    char reply[20] = {0};
    recv(sock_fd, reply, sizeof(reply), 0);

    


}
